package com.cdck.safe.dete.model.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cdck.safe.dete.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * (ResourceRecord)实体类
 *
 * @author wp
 * @since 2024-05-18 14:35:52
 */
@Data
public class ResourceRecord extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 资源id
     */
    private Long resourceId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 资源状态  0 待审核 1驳回 2通过 3完成
     */
    private Integer status;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    /**
     * 审核人Id
     */
    private Long applicationId;
    /**
     * 驳回原因
     */
    private String reason;

    /**
     * 实际结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date realEndTime;


}

